<?php
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>

<div class="tongrong-box" style="width:680px;">
	<form class="login-box-form J-ajaxForm" action="/branch/operate/option/auditsave/" method="post" autocomplete="off">
	<div class="tongrong-box-main">
    	<table width="100%" cellpadding="0" cellspacing="0" border="0">
        	<tr>
            	<td width="90px" height="30">选择审核人：</td>
                <td>
                	<select name="auditor">
                    <option value="">审核人置空</option>
                	<?php 
                	for($i=0;$i<count($this->member_name);$i++){
                    	echo '<option value="';
                    	echo $this->member_name[$i];
                    	if($this->branch_info['br_audit_urealname'] == $this->member_name[$i]){
                    		echo '"selected="selected">';
                    	}else{
                    	echo '">';
                    }
                    	echo $this->member_name[$i];
                    	echo '</option>';}?>
                    </select>
                </td>
            </tr>
            <tr>
            	<td height="70">审核标准：</td>
                <td>
                	<textarea name="audit_remark" style="resize:none; width:455px;height:200px;">
                	<?php echo $this->branch_info['br_audit_details']; ?>
                	</textarea>
                </td>
            </tr>
        </table>
    </div>
    <div class="luru-box-btn mt50">
    	<input type="hidden" name="id" value="<?php echo $this->id;?>" />
    	<input class="btn-submit-blue fn-left mr15 J-submit" type="submit" value="提交" />
        <a class="a-btn-close J-a-btn-close" href="javascript:;">关闭</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
	</form>
</div>

<script>
	//关闭弹出
	$(".J-a-btn-close").on('click',function(){
		var winElement = parent.Ext.fly(window.frameElement).up('div.x-window');
		parent.Ext.getCmp(winElement.id).close();
		
	});
	
	$(document).ready(function(e) {
		//全选
        $(".J-submit").on('click',function(){
			$(this).dyhlForm({
				beforefunction:function(){
					$(".J-submit").prop('disabled',true);
				},
				nofunction:function(){
					$(".J-submit").prop('disabled',false);
				},
				sucessfunction:function(data){
					$(".J-submit").prop('disabled',false);
					if(data['success']){
						Ext.Msg.alert('提示','提交成功',function(){
							window.parent.location.reload();
						});
						
					}else{
						Ext.Msg.alert('提示',data['msg']);
					}
				}	
			});	
		});

    });
	
</script>

<?php include $this->Render('footer.php'); ?>